package com.magina.antiPro.service;


import com.magina.antiPro.domain.bo.AuthRole;
import com.magina.antiPro.domain.bo.AuthRoleResource;
import com.magina.antiPro.exception.BusinessException;

import java.util.List;
import java.util.concurrent.ExecutionException;

/* *
 * @Author tomsun28
 * @Description 
 * @Date 9:10 2018/3/20
 */
public interface RoleService {


    boolean authorityRoleResource(int roleId, int resourceId);
    boolean testAuthorityRoleResourceWithAsyncExcep(AuthRoleResource authRoleResource) throws BusinessException, InterruptedException, ExecutionException;

    boolean addRole(AuthRole role);

    boolean updateRole(AuthRole role);

    boolean deleteRoleByRoleId(Integer roleId);

    boolean deleteAuthorityRoleResource(Integer roleId, Integer resourceId);

    List<AuthRole> getRoleList();
}
